package com.douxg.learning.springboot.base.youxi.shuipaixu;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @Description 杯子
 * @Auther douxg
 * @Date 2022/9/17 14:17
 */
@Data
@Accessors(chain = true)
public class Cup implements Serializable {
    /**
     * 容量
     */
    private Integer capacity;
    /**
     * 东西
     */
    private List<String> things;

    /**
     * 是否是同色杯
     */
    private Boolean isSameColor;

    public Cup myClone() {
        return new Cup().setCapacity(capacity).setThings(new ArrayList<>(things));
    }
}
